<?php

class MenuItem extends BaseMenuItem
{
	public function __toString(){
		return $this->getTitle();
	}


	public function getMenuItemsRelatedByParentId($criteria = null, PropelPDO $con = null){

		if(null == $criteria){
			$criteria = new Criteria();
		}
		$criteria->addDescendingOrderByColumn(MenuItemPeer::WEIGHT );
		return parent::getMenuItemsRelatedByParentId($criteria,$con);
	}
}


sfPropelBehavior::add('MenuItem', array('created_by'));